{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "e674d5db",
   "metadata": {},
   "outputs": [],
   "source": [
    "def oulaoula():\n",
    "    print(\"sidabulajiang,zawaludo\",2.022)\n",
    "    return 0"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "6bf70992",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "sidabulajiang,zawaludo 2.022\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "0"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "oulaoula()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "df442dd2",
   "metadata": {},
   "outputs": [],
   "source": [
    "def muda():\n",
    "    print(\"咋瓦鲁多！！！！\")\n",
    "    return 0"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "1843bcf2",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "咋瓦鲁多！！！！\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "0"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "muda()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "c1f5ee4d",
   "metadata": {},
   "outputs": [],
   "source": [
    "def people(name,age):\n",
    "    print(name,'is',age,'years old')\n",
    "    return 0"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "id": "41a2bd48",
   "metadata": {},
   "outputs": [],
   "source": [
    "def people(name,age):\n",
    "    print(name,'is',age,'years old')\n",
    "    return 0"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "id": "fbc543a0",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "jotailang is 33 years old\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "0"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "people(\"jotailang\",33)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "id": "781b3570",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Dio is 200 years old\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "0"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name = \"Dio\"\n",
    "age = 200\n",
    "people(name,age)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "867c4d6b",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "kakoyin is 20 years old\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "0"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "myname = \"kakoyin\"\n",
    "myage = 20\n",
    "people(myname,myage)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "id": "b222ef79",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "aduiduidui\n"
     ]
    }
   ],
   "source": [
    "if 1 > 0 :\n",
    "    print(\"aduiduidui\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "id": "bff16ac9",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "dui\n"
     ]
    }
   ],
   "source": [
    "if 1<2:\n",
    "    print(\"dui\")\n",
    "else:\n",
    "    print(\"cuo\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "d6d4ac19",
   "metadata": {},
   "outputs": [],
   "source": [
    "age=10"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "0ffeb3ba",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Dio\n"
     ]
    }
   ],
   "source": [
    "age=10\n",
    "myage=30\n",
    "if age==myage:\n",
    "    print(\"你们俩一样大\")\n",
    "elif age>myage:\n",
    "    print(\"joTAILANG\")\n",
    "else:\n",
    "    print(\"Dio\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "id": "f97e587e",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "k\n",
      "a\n",
      "k\n",
      "o\n",
      "y\n",
      "i\n",
      "n\n"
     ]
    }
   ],
   "source": [
    "for i in myname:\n",
    "    print(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "id": "41fc999a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1\n",
      "2\n",
      "2\n",
      "2\n",
      "2\n",
      "2\n",
      "2\n"
     ]
    }
   ],
   "source": [
    "mylist=[1,2,2,2,2,2,2]\n",
    "for num in mylist:\n",
    "    print(num)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "id": "8b8cf305",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1\n",
      "2\n",
      "3\n",
      "4\n",
      "5\n",
      "6\n",
      "7\n",
      "8\n",
      "9\n",
      "10\n"
     ]
    }
   ],
   "source": [
    "i=1\n",
    "while i<=10:\n",
    "    print(i)\n",
    "    i+=1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "id": "2fe3a5ea",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1.414213562373095\n"
     ]
    }
   ],
   "source": [
    "x=1\n",
    "while x!=1/x+x/2:\n",
    "    y=1/x+x/2\n",
    "    x=y\n",
    "print(x)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 66,
   "id": "ccdf0bc7",
   "metadata": {},
   "outputs": [],
   "source": [
    "def func(o):\n",
    "    n=1/o+o/2\n",
    "    return n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 67,
   "id": "a74eb859",
   "metadata": {},
   "outputs": [],
   "source": [
    "o=1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 68,
   "id": "81d69390",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "1.5"
      ]
     },
     "execution_count": 68,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "func(o)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "id": "a1d42a6e",
   "metadata": {},
   "outputs": [],
   "source": [
    "def jj(a):\n",
    "    return 1/a+a/2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 70,
   "id": "6a254dae",
   "metadata": {},
   "outputs": [],
   "source": [
    "a=1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 82,
   "id": "896a3b19",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1.414213562373095\n"
     ]
    }
   ],
   "source": [
    "def jj(a):\n",
    "    return 1/a+a/2\n",
    "b=jj(a)\n",
    "a=b\n",
    "print(b)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "id": "19f38b7b",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1.5\n"
     ]
    }
   ],
   "source": [
    "print(b)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "99e3ff44",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "938b454b",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d9023647",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
